<div id="table">
<center>
<form class="formlogin" action="<?php base_url() ?>/Beasiswa/admin/ctrl_donatur/cari" method="get">
    <h1>Cari Donatur</h1>
    <table align="center" width="290" height="90" border="0">
      <tr>
         <td width="78">
             Nama
         </td>
         <td width="220"><input class="text" type="text" name="nama" value="<?php echo $nama ?>"/></td>
      </tr>
      <tr>
          <td> Status</td>
          <td>
      <select class="text" name="mode">
    <option value="" <?php if($mode=='') echo 'selected' ?>>all</option>
    <option value="new" <?php if($mode=='new') echo 'selected' ?>>new</option>
    <option value="notified" <?php if($mode=='notified') echo 'selected' ?>>notified</option>
    <option value="approved" <?php if($mode=='approved') echo 'selected' ?>>approved</option>
    <option value="rejected" <?php if($mode=='rejected') echo 'selected' ?>>rejected</option>
</select>
          </td>
      </tr>
      <tr>
         <td align="center" colspan="2">
         <input class="button" type="submit" name="button" id="button" value="Cari" />
         </td>
      </tr>

   </table>
</form>
<br/><br/>    
    <table border="1" class="listuser" width="50%">
    <tr>
    <th>nama donatur</th>
    <th>status</th>
    <th>aksi</th>
    </tr>
<?php
for ($i=0;$i<count($row);$i++)
{
    echo '<tr>';
    echo '<td><a href="'. base_url() .'admin/ctrl_donatur/profil_donatur/'. $row[$i]['iddonatur'] .'">'. $row[$i]['nama'] .'</a></td>';
    echo '<td>'. $row[$i]['status'] .'</td>';
    echo '<td>
        <a href="'. base_url() .'admin/ctrl_donatur/delete_donatur/'. $row[$i]['iddonatur'] .'/'.$url.'">Delete</a>
        <a href="'. base_url() .'admin/ctrl_donatur/edit_donatur/'. $row[$i]['iddonatur'] .'/'.$url.'">Edit</a>
        </td>
        ';
    echo '</tr>';
}

?>
</table>
<?php
        if($isback)
        {
            echo '<a href="javascript:loadajax(\''. base_url().'admin/ctrl_donatur/cari/'.($page-1).'/ajaxon?mode='.$mode.'&&nama='.$nama.'\')">';
            echo 'back';
            echo '</a>';
        }
        if($isnext)
        {
            echo '<a href="javascript:loadajax(\''. base_url().'/admin/ctrl_donatur/cari/'.$page.'/ajaxon?mode='.$mode.'&&nama='.$nama.'\')">';
            echo 'back';
            echo '</a>';
        }
        ?>
</center>  
</div>